{/include file="simpla/common/header.html"/}
{/include file="simpla/common/left.html"/}
<div id="main-content">
  <h2>欢迎您 {/$_adminname/}</h2>
  <p id="page-intro">会员卡用户管理。</p>
  <div class="clear"></div>
  <div class="content-box">
    <div class="content-box-header">
      <h3>会员管理</h3>
      <ul class="content-box-tabs">
        <li><a href="#tab1" class="default-tab">帐号管理</a></li>
        <li><a href="{/get_url rule="/member/addmember"/}">添加帐号</a></li>
      </ul>
      <div class="clear"></div>
    </div>
    <div class="content-box-content">
      <div class="tab-content default-tab" id="tab1">
        <div class="form">
          <form action="{/get_url rule='/member/index'/}" method="post" id="js-form">
            <fieldset class="clearfix">
              <p>搜索： <span>
                <input type="text" value="{/$key/}" class="text-input small-input" name="key" />
                <small>会员卡，会员名，电话，手机</small>
                <input type="submit" name="" class="button" value="查询" />
                </span> </p>
            </fieldset>
          </form>
        </div>
        <hr />
        <table>
          <thead>
            <tr>
              <th>会员卡卡号</th>
              <th>会员姓名</th>
              <th>会员等级</th>
              <th>会员积分</th>
              <th>折扣</th>
              <th>手机号</th>
              <th>座机号</th>
              <th>管理</th>
            </tr>
          </thead>
          <tfoot>
            <tr>
              <td colspan="6">{/$pagebar/}</td>
            </tr>
          </tfoot>
          <tbody>
          {/section name=i loop=$member/}
          <tr>
            <td>{/$member[i].membercardid/}{/if $member[i].state eq 0/}<span class="red">(禁用)</span>{//if/}</td>
            <td>{/$member[i].realname/}</td>
            <td>{/$member[i].grade|mbgroup:"mgroup_name"/}</td>
            <td>{/$member[i].credit/}</td>
            <td>{/$member[i].grade|mbgroup:"discount"/}%</td>
            <td>{/$member[i].mobile/}</td>
            <td>{/$member[i].phone/}</td>
            <td><a href="{/get_url rule='/member/addmember' data='mid='|cat:$member[i].mid/}" title="编辑"><img src="{/$root_dir/}/assets/simpla/images/icons/pencil.png" alt="编辑" /></a></td>
          </tr>
          {//section/}
            </tbody>
        </table>
      </div>
    </div>
  </div>
  {/include file="simpla/common/copy.html"/} </div>
{/include file="simpla/common/footer.html"/}